/*******************************************************************************
 *                                                                             *
 * Square3D Engine                                                             *
 * (C) 2010 Aviral Dasgupta <aviraldg@gmail.com>                               *
 *                                                                             *
 *******************************************************************************
 * Engine.cpp                                                                  *
 ******************************************************************************/

#include <string>
#include <boost/thread/thread.hpp>

#include "Engine.h"

Engine::Engine(std::string basedir)
{
	
}

void Engine::run()
{
	this->thread = new boost::thread(this);
}

/** Main engine loop
 */
void Engine::operator()()
{
	bool run = true;
	while(run)
	{
		
	}
}

void Engine::finish()
{
	if(this->thread->joinable())
		this->thread->join();
}

